#{extends 'main.html' /}

<!-- @author Nada
this page contains the privacy options that are available for the user -->
<head></head>

<h1>Set your privacy settings</h1>

<hr>

</hr>

<!-- Begin @author Nada
I added 2 buttons for setting privacy either public/private to all members  -->
<script type="text/javascript">
   function confirmation() {
    var answer = confirm("Are you sure you want to set your profile to be public to all ?")
    if (answer) {
     alert("you have set ur profile to public  successfully")
     return true
    } else {
     return false
    }
   }
  </script>

#{form @RegisteredUsers.setPublic()}

<button type="submit" name="selection" value="public" onClick="return confirmation()">public to all</button>
#{/form} #{form @RegisteredUsers.setPrivate()}

<script type="text/javascript">
   function confirmation1() {
    var answer = confirm("Are you sure you want to set your profile to be private to all ?")
    if (answer) {
     alert("you have set ur profile to private successfully")
     return true
    } else {
     return false
    }
   }
  </script>


<button type="submit" name="selection" value="private" onClick="return confirmation1()">Private
		to all</button>
#{/form}
<!-- End @author Nada -->

<!-- Begin @author Ayatullah Marawan
button to show private list of user that renders page "showPrivateList.html"-->

<form action="@{Application.showPrivateList()}" method="GET">

	<button name="public" type="submit" value="one">Show Private
		list</button>
</form>
<!-- End @author Ayatullah Marawan-->


<form action="@{Application.showPublicList()}" method="GET"></form>
<!-- Begin @author Heidi ElToukhy
button to show the publicList of a registeredUser that 
renders page "showPublicList.html"-->
<form action="@{Application.showPublicList()}" method="GET">


	<button name="public" type="submit" value="one">Show Public
		list</button>

</form>
<!-- End @author Heidi ElToukhy-->

<!-- Begin @author Ayatullah Marawan
button to that renders page"searchFroAllMemebrs.html"-->

<form action="@{Application.searchForAllMembers()}" method="GET">

	<button name="private" type="submit" value="one">Add People to
		a private or a public list:</button>

</form>